package com.fin.quant.domain.mapstruct;

import com.fin.quant.domain.entity.TagEntity;
import com.fin.quant.domain.entity.TargetMetricsEntity;
import com.fin.quant.domain.entity.TargetPriceEntity;
import com.fin.quant.domain.entity.TargetTagEntity;
import com.fin.quant.instra.mysql.model.Tag;
import com.fin.quant.instra.mysql.model.TargetMetrics;
import com.fin.quant.instra.mysql.model.TargetPrice;
import com.fin.quant.instra.mysql.model.TargetTag;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface TagMapperStruct {
    TagMapperStruct INSTANCE = Mappers.getMapper( TagMapperStruct.class );

    TagEntity model2Entity(Tag tag);
    Tag entity2Model(TagEntity tagEntity);

    TargetTagEntity model2Entity(TargetTag tag);
    TargetTag entity2Model(TargetTagEntity tagEntity);

    TargetPriceEntity model2Entity(TargetPrice tag);
    TargetPrice entity2Model(TargetPriceEntity tagEntity);

    TargetMetricsEntity model2Entity(TargetMetrics tag);
    TargetMetrics entity2Model(TargetMetricsEntity tagEntity);
}
